package com.bilibili.lzx.dao;

import com.bilibili.lzx.dao.domain.UserFollowing;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lzx
 * @date 2024/8/20 20:54
 */
@Mapper
public interface UserFollowingDao {
    Integer deleteUserFollowing(Long userId, Long followingId);

    Integer addUserFollowing(UserFollowing userFollowing);

    List<UserFollowing> getUserFollowings(Long userId);

    List<UserFollowing> getUserFans(Long userId);

    UserFollowing getUserFollowingByUserIdAndFollowingId(Long userId,Long followingId);

    Integer setEachFollowing(Long userId, Long followingId);
}
